#include <iomanip>代表什么头文件的?
来源:百度知道 编辑:UC知道 时间:2024/06/06 17:06:57
ctype是一系列和类型有关的头文件,比如isdigit() isxdigit isupper() 等等
iomanip.h是常见与iostream配合使用的,比如控制流输出的函数:setw,left,right等等,如果使用要
using namespace std;
Standard C++ Library Reference
setw
See Also Example
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C# Language Filter: C++ Language Filter: J# Language Filter: JScript
Visual Basic (Declaration)
Visual Basic (Usage)
C#
C++
J#
JScript
Specifies the width of the display field.
T6 setw(
streamsize _Wide
);
Parameters
_Wide
The width of the display field.
Return Value
The manipulator returns an object that, when extracted from or inserted into the stream str, calls str.width(_Wide), then returns str.
Example
Copy Code
// iomanip_setw.cpp
// compile with: /EHsc
// Defines the entry point for t